package raft

type State struct {
	currentTerm int
	votedFor    int
	logs        []LogEntry
	// volatile state on all servers
	commitIndex   int
	lastAppliedId int
	// volatile state on leaders
	nextIndex  []int
	matchIndex []int
}

type LogEntry struct {
	key     string
	value   string
	version string
}
